package org.tigr.htc.cmd;

/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

import java.util.Date;

import org.tigr.antware.shared.command.events.FinishEvent;

/**
 * The <b>TkFinishEvent</b> class extends CommandEvent and is created and
 * sent to registered Command listeners when a Command is 
 * finished executing.
 */

public class TkFinishEvent extends FinishEvent {

	private static final long serialVersionUID = 3795073360204639371L;
	protected int index;

    /**
     * 
     */
    public TkFinishEvent() {
        super();
    }

    /**
     * @param pSource
     * @param pCommandID
     * @param pDate
     * @param pMessage
     * @param pReturnValue
     * @param pIndex
     */
    public TkFinishEvent(Object pSource, long pCommandID, Date pDate, 
		       String pMessage, int pReturnValue, int pIndex) {
        super(pSource, pCommandID, pDate, pMessage, pReturnValue);
        index = pIndex;
    }
     
    /**
     * @return
     */
    public int getIndex() {
        return index;
    }

    /**
     * @param pIndex
     */
    public void setIndex(int pIndex) {
        index = pIndex;
    }
}
